
var api = require('../../utils/api.js');
var util = require('../../utils/util.js');
var app = getApp();

Page({ 
  data: {
    bannerList: ['../../assets/img04.png', '../../assets/img04.png', '../../assets/img04.png'], //banner
    leaveMessageList: ['', '', '', '', ''], //留言列表
    memberList: ['', '', '', '', '', ''],
    currentBanner:1, //当前banner的位置
    isShowMenDian:false, // 是否显示门店弹框
  },
  onLoad: function (options) {
    
  },
  onReady: function () {

  },
  onShow: function () {

  },
  bannerChangeHandle(e){ //banner替换的时候发生的事情
    this.setData({
      currentBanner: e.detail.current+1
    })
  },
  openMenDian(){ //打开弹框
    this.setData({
      isShowMenDian:true
    })
  },
  closeMenDianHandle(){ //关闭弹框
    this.setData({
      isShowMenDian: false
    })
  } 
   
})